package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.TodayTimeExecutionRankId;
import com.techstar.common.jackson.StrDateDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 当日正点执行率排名
 * @date 2021年9月27日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "today_time_execution_rank")
@IdClass(TodayTimeExecutionRankId.class)
@org.hibernate.annotations.Table(appliesTo = "today_time_execution_rank",comment="pbtp-2-当日正点执行率排名")
public class TodayTimeExecutionRank {
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '线路标识'")
	private String lineId;
	@Column(columnDefinition="varchar(100) COMMENT '线路名称'")
	private String lineName;
	@Column(columnDefinition="varchar(100) COMMENT '当日正点执行率'")
	private String timeExecuteRatio;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '业务更新时间'")
	@JsonDeserialize(using = StrDateDeserializer.class)
	private String createTime;
}

